home *** CD-ROM | disk | FTP | other *** search
/ Interactive Web Graphics with Shout 3D / Interactive Web Graphics With Shout 3D.iso / pc / Shout3Ddemo / Shout3d_runtime / codebase / models / stepInterpolatorTest / currentTimeStepInterpTest.s3d < prev    next >
Text File  |  2000-07-11  |  1KB  |  61 lines

  1. #VRML V2.0 utf8
  2.  
  3. Background{
  4.     color 1 1 1 
  5. }
  6.  
  7. Transform{
  8. translation -12 10 0
  9. children[
  10. Shape{
  11. geometry Box{ size 20 20 20 }
  12. appearance Appearance{
  13. material DEF BOX_MAT Material{
  14.     diffuseColor 0 0 0
  15.     emissiveColor 1 0 0
  16.     transparency 0
  17. }
  18. }
  19. }
  20. ]
  21. }
  22.  
  23. DEF GONG JavaSound{
  24.     url "../sounds/gong.au"
  25. }
  26.  
  27. DEF Camera01 Viewpoint{
  28. fieldOfView 0.6024
  29. position 36.45 22.24 -53.66
  30. orientation -0.031 0.997 0.077 -3.907
  31. description "Camera01"
  32. }
  33.  
  34.  
  35. DEF Combo_Dummy-TIMER TimeSensor{
  36. cycleInterval 10
  37. loop TRUE
  38. }
  39.  
  40. DEF TIME_TRACK CurrentTimeStepInterp{
  41. key [0, .25, .4, .7, .9]
  42. }
  43.  
  44. DEF COLOR_TIMER TimeSensor{
  45.     cycleInterval 1
  46. }
  47.  
  48. DEF COLOR_INTERP ColorInterpolator{
  49. key [0, .25, .5, .75]
  50. keyValue [ 1 0 0, 1 1 0, 0 1 0, 0 0 0 ]
  51. }
  52.  
  53. ROUTE COLOR_TIMER.fraction TO COLOR_INTERP.fraction
  54. ROUTE COLOR_INTERP.value TO BOX_MAT.emissiveColor
  55.  
  56. ROUTE Combo_Dummy-TIMER.fraction_changed TO TIME_TRACK.set_fraction
  57. ROUTE TIME_TRACK.value TO GONG.startTime
  58. ROUTE TIME_TRACK.value TO COLOR_TIMER.startTime
  59.  
  60.  
  61.